//
//  DDBossInfoService.h
//  DingDongZP
//
//  Created by Jyh on 16/4/20.
//  Copyright © 2016年 iyhjiang.com. All rights reserved.
//

#import "DDBaseService.h"
#import "DDTeamHighlightTag.h"
#import "DDBossPosition.h"
#import "DDBossInfo.h"

typedef NS_ENUM(NSInteger, DDBossInfoType) {
    DDBossInfoTypeAvatar,
    DDBossInfoTypeName,
    DDBossInfoTypeWx,
    DDBossInfoTypeEmail,
    DDBossInfoTypePosition,
    DDBossInfoTypePositionCustom,
    DDBossInfoTypeLight,
    DDBossInfoTypeIntro,
    DDBossInfoTypeShortName,
    DDBossInfoTypeIndustry,
    DDBossInfoTypeCompanySize,
    DDBossInfoTypeFiniance,
    DDBossInfoTypeFullname,
    DDBossInfoTypeWebsite,
    DDBossInfoTypeAddress
};

//  增加活跃度类型选项
//  签到
#define kBossActivenessTypeSignin      @"signin"
//  每日沟通
#define kBossActivenessTypeCommunicate @"communicate"
//  看看新职位
#define kBossActivenessTypeView        @"view"
//  分享
#define kBossActivenessTypeShare       @"share"

/**
 *  Boss端查询修改信息相关的
 */
@interface DDBossInfoService : DDBaseService

/**
 *  Boss 端查询个人信息
 */
- (void)queryBossInfoWithSuccessBlock:(successBlock)successBlock
                                   failBlock:(faileBlock)failBlock;

/**
 *  @brief 查询个人信息
 *
 *  @param refresh  是否刷新
 *  @param callback 回调
 */
- (void)queryBossInfoWithRefresh:(BOOL)refresh
                        callback:(void (^)(DDBossInfo *info))callback;

/**
 *  Boss端查询感兴趣的牛人
 *
 *  @param page  页码 从0开始，一次返回10条
 */
- (void)queryBossInterestingCattleWithPage:(NSString *)page
                              SuccessBlock:(successBlock)successBlock
                                 failBlock:(faileBlock)failBlock;

/**
 *  @brief 修改用户信息
 *
 *  @param infoType
 *  @param value
 *  @param callback
 */
- (void)eidtInfoType:(DDBossInfoType)infoType value:(id)value callback:(void (^)(BOOL succ, NSString *err))callback;

/**
 *  @brief 查询所有公司亮点标签
 *
 *  @param callback 回调
 */
- (void)queryHighlights:(void (^)(NSArray *highlights))callback;

/**
 *  @brief 查询所有公司身份
 *
 *  @param callback 
 */
- (void)queryEmployerPositions:(void (^)(NSArray *positions))callback;

/**
 *  @brief 查询所有行业
 *
 *  @param callback 
 */
- (void)queryIndustry:(void (^)(NSArray *industries))callback;

/**
 *  查询所有公司规模
 *
 *  @param callback 回调
 */
- (void)queryCompanySize:(void (^)(NSArray *companySizes))callback;

/**
 *  查询所有公司融资
 *
 *  @param callback
 */
- (void)queryCompanyFinance:(void (^)(NSArray *companyFinance))callback;

/**
 *  签到
 *
 *  @param callback
 */
- (void)signUpWithCallback:(void (^)(BOOL succ))callback;

/**
 *  查询技能要求标签
 *
 *  @param levelID  传入的二级职位类别 ID
 *  @param callback
 */
- (void)querySkillRequirementArrayWithLevelID:(NSString *)levelID callback:(void (^)(NSArray *skillArray))callback;

/**
 *  @brief 增加活跃度
 *
 *  @param type     活跃度类型，参见上方宏定义
 *  @param callback 回调方法
 */
- (void)addActivenessWithType:(NSString *)type callback:(void (^)(BOOL succ, id data))callback;

@end
